package string

// https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/xnhbqj/
// 字符串反转
// 算法: 遍历
func reverseString(s []byte) {
	for left := 0; left < len(s)/2; left++ {
		right := len(s) - left - 1
		s[left], s[right] = s[right], s[left]
	}
}
